import request from '@/utils/request'

// 查询实验室基本情况列表
export function listLaboratory(query) {
  return request({
    url: '/statistics/laboratory/list',
    method: 'get',
    params: query
  })
}

// 查询实验室基本情况详细
export function getLaboratory(id) {
  return request({
    url: '/statistics/laboratory/' + id,
    method: 'get'
  })
}

// 新增实验室基本情况
export function addLaboratory(data) {
  return request({
    url: '/statistics/laboratory',
    method: 'post',
    data: data
  })
}

// 修改实验室基本情况
export function updateLaboratory(data) {
  return request({
    url: '/statistics/laboratory',
    method: 'put',
    data: data
  })
}

// 删除实验室基本情况
export function delLaboratory(id) {
  return request({
    url: '/statistics/laboratory/' + id,
    method: 'delete'
  })
}

// 导出实验室基本情况
export function exportLaboratory(query) {
  return request({
    url: '/statistics/laboratory/export',
    method: 'get',
    params: query
  })
}